<?php

	global $rid, $reviewDAO, $reviewResult, $userDAO,$errmsg;
	
	
	$shopDAO=GetShopDAO();
	$productDAO=GetProductDAO();

	/*可以join表得出*/
	/*
	 * Get the user info
	 */
	$tmp=$userDAO->GetUserByID($reviewResult['user_id']);
	$userName=$tmp['nick'];
	
	/*
	 * Get the shop info
	 */
	$shopName=$shopDAO->GetShopName($reviewResult['shop_id']);
	
	/*
	 * Get the product list
	 */

	if(!edp_is_empty_string($reviewResult['product_id_list']))
	{
		$productList=$productDAO->GetProductByIdList($reviewResult['product_id_list']);
	}
	
	/*
	 * Get Picture
	 */
	if($reviewResult['pic_count']>'0')
	{
		$pictureList=$reviewDAO->GetPictureByRid($rid);
	}
	
	/*
	 * Get Payment method
	 */
	if(!edp_is_empty_string($reviewResult['paymethod']))
	{
		//$paymethodList=str_replace(":",", ",$reviewResult['paymethod']);
		$paymethodList=$shopDAO->GetShopPayMethods($reviewResult['paymethod']);
	}
	
	/*
	 * Get Feature 
	 */
	if(!edp_is_empty_string($reviewResult['feature']))
	{
		//$featureList=str_replace(":",", ",$reviewResult['feature']);
		$featureList=$shopDAO->GetShopFeatures($reviewResult['feature']);
	}
	
	/*
	 * Get tag
	 */
	if(!edp_is_empty_string($reviewResult['tag']))
	{
		$tagList=split(" ",$reviewResult['tag']);
	}
	$breadcrumb = GetBreadcrumb();
	$breadcrumb->add( "首页", EDP_DOMAIN );
	$breadcrumb->add( $shopName, edp_href_link(PAGENAME_SHOP_INFO,"sid=".$reviewResult['shop_id']) );
	$breadcrumb->add( "点评详情" );
?>
